package com.xinkao.example.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinkao.example.config.base.BaseService;
import com.xinkao.example.domain.entity.UploadFileEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件上传
 * @Author
 * @Date 2021-08-27 10:31:50
 */
public interface UploadFileService extends IService<UploadFileEntity>, BaseService<UploadFileEntity> {

    /**
     * 上传
     * @Author lililiang
     * @Date 2021/8/27 10:34
     */
    JSONObject upload(String path, MultipartFile file);
    /**
     * 上传
     * @Author lililiang
     * @Date 2021/8/27 10:34
     */
    JSONObject upload(MultipartFile file);
}

